<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.2.4</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>

	<groupId>ru.driveclickbank</groupId>
	<artifactId>ssp-service</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<packaging>war</packaging>
	<name>ssp-service</name>
	<description>ssp-service project for Spring Boot</description>

	<properties>
		<java.version>17</java.version>
		<jcp.version>2.0.41940-A</jcp.version>
	</properties>

	<repositories>
<!--
		<repository>
			<id>gis4fun-repo</id>
			<name>GIS4Fun Repository</name>
			<url>https://gis4fun.org/nexus/repository/main-releases/</url>
		</repository>
-->
	</repositories>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jpa</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web-services</artifactId>
		</dependency>

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>jakarta.xml.bind</groupId>
			<artifactId>jakarta.xml.bind-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents.client5</groupId>
			<artifactId>httpclient5</artifactId>
		</dependency>
		<!--
AdES-core
ASN1P
asn1rt
CAdES
cmsutil
cpSSL
forms_rt
J6CF
J6Oscar
JCP
JCPControlPane
JCPRequest
JCPRevCheck
JCPRevTools
JCPxml
JCryptoP
Rutoken
samples
samples-sources
tls_proxy
XAdES
XMLDSigRI
-->
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>cmsutil</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/cmsutil.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>tls_proxy</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/tls_proxy.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCPxml</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCPxml.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>Rutoken</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/Rutoken.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>XMLDSigRI</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/XMLDSigRI.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>cpSSL</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/cpSSL.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>AdES-core</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/AdES-core.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>asn1rt</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/asn1rt.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>ASN1P</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/ASN1P.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>CAdES</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/CAdES.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCP</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCP.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCPRequest</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCPRequest.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCPRevCheck</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCPRevCheck.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCPRevTools</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCPRevTools.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>jcp</groupId>
			<artifactId>JCryptoP</artifactId>
			<version>${jcp.version}</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/jcp/JCryptoP.jar</systemPath>
		</dependency>

	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>
							<groupId>org.projectlombok</groupId>
							<artifactId>lombok</artifactId>
						</exclude>
					</excludes>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxb2-maven-plugin</artifactId>
				<version>3.1.0</version>
				<executions>
					<execution>
						<id>xjc</id>
						<goals>
							<goal>xjc</goal>
						</goals>
						<configuration>
							<sources>
								<source>src/main/resources/xsd</source>
							</sources>
							<packageName>ru.driveclickbank.sspservice.model</packageName>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>
